<?php
	include_once(realpath(dirname(__FILE__)) . "/../../../../fonctions/authplugins.php");

	autorisation("mailjet");

	include_once(realpath(dirname(__FILE__)) . "/../Mailjet.class.php");
?>

	    <p><a href="accueil.php" class="lien04">Accueil </a><img src="gfx/suivant.gif" width="12" height="9" border="0" /><a href="module_liste.php" class="lien04">Modules</a> <img src="gfx/suivant.gif" width="12" height="9" border="0" /><a href="module.php?nom=mailjet" class="lien04">Newsletter</a> <img src="gfx/suivant.gif" width="12" height="9" border="0" /><a href="#" class="lien04">Gestion des d&eacute;sinscription</a></p>


<form action="module.php" method="get" id="formsuppr">
	<input type="hidden" name="action_mailjet" value="desinscription" />
	<input type="hidden" name="nom" value="mailjet" />
	<input type="text" name="mailjet_email"  />
	
	
	<a href="#" onclick="document.getElementById('formsuppr').submit()">Supprimer un e-mail</a>
</form>	

<br />

<table width="100%"  border="0" cellspacing="0" cellpadding="0">


<?php
	$desinscription = new Mailjet_desinscription();
	$query_desinc = "select * from $desinscription->table order by date desc";
	$resul_desinc = mysql_query($query_desinc, $desinscription->link);
	
	$i = 0;
	
	while($row_desinc = mysql_fetch_object($resul_desinc)){
	
		$i++;
		
		if($i%2)
			$fond = "claire";
		else
			$fond = "sombre";
?>
<tr class="cellule_<?php echo $fond; ?>">
  <td width="80%" height="30">&nbsp;<a href="mailto:<?php echo $row_desinc->email; ?>"><?php echo $row_desinc->email; ?></a></td>
  <td width="20%" height="30">
    <div align="left"><a href="module.php?nom=mailjet&action_mailjet=desinscription_annulation&id=<?php echo $row_desinc->id; ?>" class="lien04">-</a></div>
  </td>
</tr>
<?php
	}
?>
</table>